package tech.ezrealc.fall2023.repository.personnel;

import com.github.pagehelper.PageRowBounds;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import tech.ezrealc.fall2023.model.personnel.student.StudentDO;

import java.util.List;

public interface StudentRepository {

    @Select("select * from fall2023.enrollment_info")
    List<StudentDO> selectAll();

    @Insert("insert into fall2023.enrollment_info values " +
            "(#{id}, #{gender}, #{birthday}, #{schoolId}, #{department}, #{major}, #{classe}, #{batch})")
    void insertStudent(StudentDO studentDO);

}
